var WxParse = require('../../utils/wxParse/wxParse.js');
var api = require('../../utils/api.js')
Page({

  /**
   * 页面的初始数据
   */
  data: {
    answer:''
  },


  onLoad: function (options) {
    let that = this
    api.problemDetails({
      id: options.id,
    }).then(res => {
      if (res.result) {
        var article = res.object.answer
        WxParse.wxParse('article', 'html', article, that, 1);
        that.setData({
          answer: res.object.answer
        })
      }
    })
  },

 
})